Arrays.toString(list.toArray())
//using for-each loop System.out.println("\nUsing for-each loop\n"); for (String str : arrlist) { System.out.println(str); }